package org.dromara.system.controller.xiaofu;


import org.dromara.common.core.domain.R;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.dromara.system.domain.query.XfRatingDimensionQuery;
import org.dromara.system.domain.vo.XfRatingDimensionVo;
import org.dromara.system.service.IXfRatingDimensionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/xiaofu/ratingDimension")
public class XfRatingDimensionController extends BaseController {

    @Autowired
    private IXfRatingDimensionService xfRatingDimensionService;

    @GetMapping("/list")
    public TableDataInfo<XfRatingDimensionVo> list(XfRatingDimensionQuery query){
        return xfRatingDimensionService.selectPageXfRatingDimensionList(query);
    }

    @GetMapping("/{id}")
    public R<XfRatingDimensionVo> getDetail(@PathVariable Long id){
        XfRatingDimensionVo xfRatingDimensionVo = xfRatingDimensionService.selectXfRatingDimensionById(id);
        return R.ok(xfRatingDimensionVo);
    }

}
